var express = require('express');
var router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});

router.get("/map",function(req,res,next){
  //接口数据返回
  console.log(req.query)

  let data = [
    [116.404, 39.925,{name:"张璐清洁工",desc:"张璐喜欢偷懒，扣他200块钱今天"}],
    [116.404, 39.915,{name:"杜腾昊",desc:"汽车信息都是他的xxxxx"}],
    [116.395, 39.935,{name:"李东泽",desc:"东泽2201A第一号清洁工"}],
    // [116.415, 39.931],
  ]

  res.send({
    code:200,
    msg:"成功",
    data
  })
})

module.exports = router;
